package com.zwz.mall.api;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

/**
 * @Author: EzerXie
 * @Description:
 * @Date: Created on 2018/11/6 14:58
 * @Modified By:
 */
public interface BaseApiService {

//    @POST(ApiAddress.REGISTER)
//    Observable<String> user_logou(
//            //        @HeaderMap Map<String ,Object> maps,@QueryMap Map<String,String> map2//有header（请求头） 和 query（参数）的。同时有的话，两个都加
//
//    );
//    @GET(ApiAddress.REGISTER)
//    Observable<String> get_goodslist(@QueryMap Map<String, Object> map);
    //登录
    @POST(ApiAddress.USER_LOGIN)
    Observable<String> user_login(
            @QueryMap Map<String,Object> map
    );
//核货
    @GET(ApiAddress.HE_HUO)
    Observable<String> he_huo(
            @QueryMap Map<String,Object> map
    );
    @GET(ApiAddress.HE_HUO_SEVE)
    Observable<String> he_huo_seve(
            @QueryMap Map<String,Object> map
    );
    @GET(ApiAddress.SONG_HUO_SEVE)
    Observable<String> song_huo_seve(
            @QueryMap Map<String,Object> map
    );
//核货详情
    @GET(ApiAddress.HE_HUO_DETAILS)
    Observable<String> he_huo_details(
            @QueryMap Map<String,Object> map
    );
//核货
    @GET(ApiAddress.SONG_HUO)
    Observable<String> song_huo(
            @QueryMap Map<String,Object> map
    );
//核货详情
    @GET(ApiAddress.SONG_HUO_DETAILS)
    Observable<String> song_huo_details(
            @QueryMap Map<String,Object> map
    );
}
